package web_wms_model

import (
	"github.com/shopspring/decimal"
	"time"
)

const TableNameWmOutboundOrderDetail = "wm_outbound_order_detail"

// WmOutboundOrderDetail mapped from table <wm_outbound_order_detail>
type WmOutboundOrderDetail struct {
	ID           string          `gorm:"column:id;type:nvarchar;primaryKey" json:"id"`
	OrderCode    string          `gorm:"column:order_code;type:nvarchar;not null" json:"order_code"`
	OrderLineNum int64           `gorm:"column:order_line_num;type:int;not null" json:"order_line_num"`
	IsQualified  string          `gorm:"column:is_qualified;type:nvarchar" json:"is_qualified"`
	Count        decimal.Decimal `gorm:"column:count;type:decimal" json:"count"`
	OwnerID      string          `gorm:"column:owner_id;type:nvarchar" json:"owner_id"`
	OwnerCode    string          `gorm:"column:owner_code;type:nvarchar" json:"owner_code"`
	ProductID    string          `gorm:"column:product_id;type:nvarchar" json:"product_id"`
	ProductCode  string          `gorm:"column:product_code;type:nvarchar" json:"product_code"`
	LotNum       string          `gorm:"column:lot_num;type:nvarchar" json:"lot_num"`
	ProductDate  time.Time       `gorm:"column:product_date;type:date" json:"product_date"`
	ExpireDate   time.Time       `gorm:"column:expire_date;type:date" json:"expire_date"`
	CreateTime   time.Time       `gorm:"column:create_time;type:datetime" json:"create_time"`
	UpdateTime   time.Time       `gorm:"column:update_time;type:datetime" json:"update_time"`
	OwnerNum     string          `gorm:"column:owner_num;type:nvarchar" json:"owner_num"`
	ProcessState string          `gorm:"column:process_state;type:nvarchar" json:"process_state"`
}

// TableName WmOutboundOrderDetail's table name
func (*WmOutboundOrderDetail) TableName() string {
	return TableNameWmOutboundOrderDetail
}
